package com.app.mapper.teacher.management;

import com.app.pojo.Teacher;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TeacherMapper {
    Teacher getTeacherById(String id);
    Teacher getTeacherById2(Integer id);
    List<Teacher> getTeachers();
    List<Teacher> getLikeTeacher(Teacher teacher);
    Integer updateInfo(@Param("id") Integer id, @Param("name") String name, @Param("sex") Integer sex, @Param("mobilePhone") String mobilePhone);
    Integer updatePassword(@Param("id") Integer id, @Param("newPassword") String newPassword);
    Integer delTeacher(Integer id);
    Integer addTeacher(Teacher teacher);
    Integer updateAll(Teacher teacher);
}
